Question: 1 -
What is a Primitive Data Type in Java?
-
Data type, which is implemented in an Object-oriented way.
-
None of the above
-
Data Type which is implemented in a non-object oriented way.
-
Data Type which is implemented in a machine-dependent way
Answer:
Data Type which is implemented in a non-object oriented way.
Solution not available.
Question: 2 -
which among the following is not a Data Type in Java?
-
short
-
int
-
long double
-
double
Answer:
long double
Solution:
"long double" is present only in C language.
"long double" is present only in C language.
Question: 3 -
Which data type among the following is an implementation of Objects or OOPs?
-
byte
-
None of the above
-
int
-
char
Answer:
None of the above
Solution:
All primitive data types are implemented in a Non-Object Oriented way.
All primitive data types are implemented in a Non-Object Oriented way.
Question: 4 -
Choose the wrong statement about Java programming?
-
Java supports unsigned integers
-
Java supports signed char
-
None of the above
-
Java supports signed integers
Answer:
Java supports unsigned integers
Solution:
Only C language supports unsigned integers. Java does not support.
Only C language supports unsigned integers. Java does not support.
Question: 5 -
What does a Data Type in Java refers to?
-
The technique how data is retreived
-
The type or variety of data being handled for reading and writing
-
None of the above
-
The place where data is stored
Answer:
The type or variety of data being handled for reading and writing
Solution:
Integers, Real numbers, Boolean, Characters etc
Integers, Real numbers, Boolean, Characters etc